package com.ss.android.article.base.feature.user.account;

import android.annotation.SuppressLint;
import android.net.ConnectivityManager;
import android.net.Network;

import java.net.URL;

@SuppressLint("NewApi")
final class b extends ConnectivityManager.NetworkCallback {
    private final RequestMobileService c;
    private final String a;
    private final ConnectivityManager b;

    b(RequestMobileService arg1, String arg2, ConnectivityManager arg3) {
        this.c = arg1;
        this.a = arg2;
        this.b = arg3;

    }

    public final void onAvailable(Network arg6) {
        try {
            this.c.a(this.c.a(arg6.openConnection(new URL(this.a)), true, false), arg6);
        } catch (Exception v0) {
        }
        this.b.unregisterNetworkCallback(((ConnectivityManager.NetworkCallback) this));
    }
}

